package com.wang.interview.designmode.iterator;

import com.wang.interview.designmode.iterator.pojo.Student;

import java.util.Arrays;

/**
 * @author: wang
 * @date: 2021/8/2 09:48
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        Student wang = new Student("wang", 1);
        Student wang1 = new Student("wang1", 12);
        Student wang2 = new Student("wang2", 13);
        Student wang3 = new Student("wang3", 14);
        Student wang4 = new Student("wang4", 15);
        Student wang5 = new Student("wang5", 16);
        Class1<Student> class1 = new Class1<>(new Student[]{wang, wang1, wang2, wang3, wang4, wang5});
        class1.show();

        Student wei = new Student("wei", 1);
        Student wei1 = new Student("wei1", 12);
        Student wei2 = new Student("wei2", 13);
        Student wei3 = new Student("wei3", 14);
        Student wei4 = new Student("wei4", 15);
        Student wei5 = new Student("wei5", 16);
        Class2<Student> class2 = new Class2<>(Arrays.asList(wei, wei1, wei2, wei3, wei4, wei5));
        class2.show();
    }
}
